package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.assistant.AssistantBodySkin;
import com.yanqu.road.entity.assistant.UserAssistantDecoration;
import com.yanqu.road.entity.assistant.UserAssistantSuit;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserAssistantSkinBusiness {
    public static AssistantBodySkin getUserAssistantBodySkin(long userId) {
        return DaoHelper.getAssistantBodySkinDaoImpl().getAssistantBodySkin(userId);
    }

    public static Map<Integer, UserAssistantDecoration> getAssistantSkinMap(long userId) {
        return DaoHelper.getAssistantDecorationDaoImpl().getAssistantDecoration(userId);
    }

    public static Map<Integer, UserAssistantSuit> getAssistantSuitMap(long userId) {
        return DaoHelper.getAssistantSuitDaoImpl().getAssistantMap(userId);
    }

    public static boolean addUserAssistantBodySkin(AssistantBodySkin assistantBodySkin) {
        return DaoHelper.getAssistantBodySkinDaoImpl().add(assistantBodySkin);
    }

    public static boolean updateUserAssistantBodySkin(AssistantBodySkin assistantBodySkin) {
        return DaoHelper.getAssistantBodySkinDaoImpl().update(assistantBodySkin);
    }

    public static boolean addAssistantSkin(UserAssistantDecoration userAssistantDecoration) {
        return DaoHelper.getAssistantDecorationDaoImpl().add(userAssistantDecoration);
    }

    public static boolean updateAssistantSkin(UserAssistantDecoration userAssistantDecoration) {
        return DaoHelper.getAssistantDecorationDaoImpl().update(userAssistantDecoration);
    }

    public static boolean addAssistantSuit(UserAssistantSuit userAssistantSuit) {
        return DaoHelper.getAssistantSuitDaoImpl().add(userAssistantSuit);
    }

    public static boolean updateAssistantSuit(UserAssistantSuit userAssistantSuit) {
        return DaoHelper.getAssistantSuitDaoImpl().update(userAssistantSuit);
    }

    public static List<UserAssistantDecoration> getTopDecoration(long userId, int topNum) {
        return DaoHelper.getAssistantDecorationDaoImpl().getTopDecoration(userId, topNum);
    }
}
